package com.ruoyi.teaching.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 每日任务对象 ya_daily_tasks
 *
 * @author ruoyi
 * @date 2024-04-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ya_daily_tasks")
public class DailyTasks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 日期 */
    @Excel(name = "日期")
    @TableField("date")
    private String date;

    /** 课程内容 */
    @Excel(name = "课程内容")
    @TableField("course_content")
    private String courseContent;

    /** 阶段 */
    @Excel(name = "阶段")
    @TableField("stage")
    private Integer stage;

    /** 班级id */
    @Excel(name = "班级id")
    @TableField("classes_id")
    private Long classesId;

    /** 学生ID */
    @Excel(name = "学生ID")
    @TableField("student_id")
    private Long studentId;

    /** 任务状态：1-未开始；2-进行中；3-已完成；4-已过期 */
    @Excel(name = "任务状态：1-未开始；2-进行中；3-已完成；4-已过期")
    @TableField("status")
    private Integer status;

    /** 是否合格: 1-质量&速度合格；2-质量&速度不合格；3-速度不合格；4-质量不合格 */
    @Excel(name = "是否合格: 1-质量&速度合格；2-质量&速度不合格；3-速度不合格；4-质量不合格")
    @TableField("qualified")
    private Integer qualified;

    /** 总结图片 */
    @Excel(name = "总结图片")
    @TableField("summary_pic_url")
    private String summaryPicUrl;

    /** 难点反馈 */
    @Excel(name = "难点反馈")
    @TableField("difficulty_feedback")
    private String difficultyFeedback;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("courseContent", getCourseContent())
            .append("stage", getStage())
            .append("classesId", getClassesId())
            .append("studentId", getStudentId())
            .append("status", getStatus())
            .append("qualified", getQualified())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("summaryPicUrl", getSummaryPicUrl())
            .append("difficultyFeedback", getDifficultyFeedback())
            .toString();
    }
}
